package com.android.fragmentdemo.defineviews
import android.content.Context
import android.text.TextUtils
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView

class MarqueeTextView @JvmOverloads constructor(context: Context, attributeSet: AttributeSet? = null) : AppCompatTextView(context,attributeSet) {

    init {
        ellipsize = TextUtils.TruncateAt.MARQUEE
        isSingleLine = true
        marqueeRepeatLimit = -1
    }

    override fun isFocused(): Boolean {
        return true
    }
}